package interview.CooperateSystem.common.handler;

import interview.CooperateSystem.common.entity.Message;

/**
 * Created by angela on 6/6/2014.
 */
public interface Handler<M extends Message>{

    public M translateMessage(Message message);

    public Handler getHandlerFromContext(Message message);

    public void processMessage(M message);

    public void reveiveMessage(Message message);
}
